package com.shanzmoo.core.service;

import com.shanzmoo.db.mall.entity.MallOrderDetailEntity;
import com.shanzmoo.db.mall.entity.MallOrderEntity;

import java.util.List;

/**
 * 商城订单缓存操作 接口
 * @author Gzhao 2020/12/25
 */
public interface IMallOrderRedisService {
    /**
     * 存储全部商城订单缓存
     */
    void refreshAllOrderRedis();

    /**
     * 添加一个订单到redis中
     * @param orderEntity
     * @param mallOrderDetailEntityList
     */
    void addOneOrderRedis(MallOrderEntity orderEntity, List<MallOrderDetailEntity> mallOrderDetailEntityList);

    /**
     * 删除会员订单
     *
     * @author Gzhao 2021/1/8
     * @param orderId
     * @param memberId
     * @return
     */
    void removeMemberOrder(Integer orderId, Integer memberId);

    /**
     * 更新订单收货状态
     *
     * @author Gzhao 2021/1/8
     * @param orderId
     * @return
     */
    void updateOrder(Integer orderId);
}
